home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- CLS
- REM Terry E. Mercer may be reached at:
- REM 4184 Hilsinger Road, Phoenix, OR 97535
- REM
- REM Micromedia Publishers, Inc. may be reached at:
- REM 505 NE 7th, Grants Pass, OR 97526
- REM 1-503-474-1111 or 1-503-471-4133 (both Voice) or
- REM 1-503-474-2486 or 1-503-471-8836 (both Fax)
- REM
- ECHO.
- ECHO.
- ECHO.
- ECHO This Program is to assist in the Installation of programs
- ECHO found on this CD, using the MMPI & PBG CD Rom Launcher
- ECHO ══════════════════════════════════════════
- ECHO Written by Terry E. Mercer c 22 August 1995
- ECHO This batch program is Copyright Protected, and may be used
- ECHO ONLY as specified by Terry Mercer or MicroMedia Publishers, Inc.
- ECHO.
- ECHO.
- ECHO NOTE: This program can also Un-Install (Delete and Remove)
- ECHO everything it installs! It has done so safely and
- ECHO perfectly on all of our test systems running DOS 6.xx!
- ECHO.
- ECHO Help is available by typing in ZZ /? at the DOS prompt.
- ECHO.
- ECHO.
- ECHO.
- PAUSE
- cls
-
- IF "%1"=="/?" GOTO HELP
- IF "%1"=="?" GOTO HELP
-
- IF !%1==! GOTO NOCHOICE
-
- IF "%1"=="C:" GOTO HELP
- IF "%1"=="c:" GOTO HELP
- IF "%1"=="D:" GOTO HELP
- IF "%1"=="d:" GOTO HELP
- IF "%1"=="E:" GOTO HELP
- IF "%1"=="e:" GOTO HELP
- IF "%1"=="F:" GOTO HELP
- IF "%1"=="f:" GOTO HELP
- IF "%1"=="G:" GOTO HELP
- IF "%1"=="g:" GOTO HELP
-
- IF "%1"=="C" GOTO HELP
- IF "%1"=="c" GOTO HELP
- IF "%1"=="D" GOTO HELP
- IF "%1"=="d" GOTO HELP
- IF "%1"=="E" GOTO HELP
- IF "%1"=="e" GOTO HELP
- IF "%1"=="F" GOTO HELP
- IF "%1"=="f" GOTO HELP
- IF "%1"=="G" GOTO HELP
- IF "%1"=="g" GOTO HELP
-
- IF NOT EXIST C:\DOS\CHOICE.COM GOTO WRONGDOS
-
- REM DRIVES C: AND D: WILL AUTOMATICALLY BE CHECKED... IF THE END-USERS
- REM CD DRIVE IS D: (for example) THEN IT WILL TRY TO DELETE IT... IT MAY
- REM FAIL AND NOT CHECK THE REST. LOOK FOR MENU.EXE (NOT XCOPIED TO HDD)
- REM FOR FAIL-SAFE. MOST PEOPLE WILL BE INSTALLING TO C: DRIVE OR WILL
- REM HAVE A CD DRIVE WITH A LETTER OTHER THAN D: (A CD D: is immpossible
- REM to have with more than one hard drive, therefore C: is most common
- REM place to install the CD).
- REM EXCEPTIONS: Stacker, Drive Space, & Double Space Drives (Logical drives).
-
- IF "%1"=="DELETE" GOTO DELET
- IF "%1"=="Delete" GOTO DELET
- IF "%1"=="delete" GOTO DELET
-
- IF "%2"=="DELETE" GOTO DELET
- IF "%2"=="Delete" GOTO DELET
- IF "%2"=="delete" GOTO DELET
-
- REM DRIVES C: AND D: WILL AUTOMATICALLY BE CHECKED... IF THE END-USERS
- REM CD DRIVE IS D: (for example) THEN IT WILL TRY TO DELETE IT... IT MAY
- REM FAIL AND NOT CHECK THE REST. LOOK FOR MENU.EXE (NOT XCOPIED TO HDD)
- REM FOR FAIL-SAFE. MOST PEOPLE WILL BE INSTALLING TO C: DRIVE OR WILL
- REM HAVE A CD DRIVE WITH A LETTER OTHER THAN D: (which is impossible
- REM to have with more than one hard drive, therefore C: is most common).
- REM EXCEPTIONS: Stacker, Drive Space, & Double Space Drives (Logical drives).
-
- IF "%2"=="E:" GOTO HARDE
- IF "%2"=="e:" GOTO HARDE
- IF "%2"=="F:" GOTO HARDF
- IF "%2"=="f:" GOTO HARDF
- IF "%2"=="G:" GOTO HARDG
- IF "%2"=="g:" GOTO HARDG
- IF "%2"=="E" GOTO HARDE
- IF "%2"=="e" GOTO HARDE
- IF "%2"=="F" GOTO HARDF
- IF "%2"=="f" GOTO HARDF
- IF "%2"=="G" GOTO HARDG
- IF "%2"=="g" GOTO HARDG
-
- IF "%3"=="E:" GOTO HARDE
- IF "%3"=="e:" GOTO HARDE
- IF "%3"=="F:" GOTO HARDF
- IF "%3"=="f:" GOTO HARDF
- IF "%3"=="G:" GOTO HARDG
- IF "%3"=="g:" GOTO HARDG
- IF "%3"=="E" GOTO HARDE
- IF "%3"=="e" GOTO HARDE
- IF "%3"=="F" GOTO HARDF
- IF "%3"=="f" GOTO HARDF
- IF "%3"=="G" GOTO HARDG
- IF "%3"=="g" GOTO HARDG
-
- IF EXIST \%1\INSTALL\INSTALL.EXE GOTO THEIR1
- IF EXIST \%1\INSTALL\INSTALL.COM GOTO THEIR2
- IF EXIST \%1\INSTALL\SETUP.EXE GOTO THEIR3
-
- GOTO BEGIN
-
- :THEIR1
- CD\
- CD %1
- CD INSTALL
- CALL INSTALL.EXE
- GOTO RUN
-
- :THEIR2
- CD\
- CD %1
- CD INSTALL
- CALL INSTALL.COM
- GOTO RUN
-
- :THEIR3
- CD\
- CD %1
- CD INSTALL
- CALL SETUP.EXE
- CD\
- GOTO RUN
-
- :RUN
- if not exist mmpi.bat goto Sorry
- C:
- CD\MMPI
- CALL C:\MMPI\mmpi.bat
- GOTO DELET
-
- :NOCHOICE
- IF NOT Exist C:\DOS\XCOPY.EXE GOTO WIN95
- IF NOT EXIST ZZ.BAT GOTO NOCD
- ECHO.
- ECHO This will take a few minutes, please be patient...
- ECHO.
- ECHO.
- ECHO Remember, only files ending in EXE, COM, and BAT can start
- ECHO programs. Many programs will require running SETUP, if such
- ECHO a file (program) exists. If you do NOT want to install the
- ECHO program at this time, hold down the Control (Ctrl) key and
- ECHO press the letter C. Answer Y(es) to the question "Terminate Batch?"
- ECHO.
- ECHO.
- PAUSE
- GOTO DRIVE1
-
- :NOCD
- ECHO.
- ECHO.
- ECHO You must start this program directly from the CD Rom Drive,
- ECHO from DOS... with your CD as the default drive. Example "D:\>,"
- ECHO where "D" is the letter designating your CD Rom drive.
- ECHO.
- ECHO ...Please try again...
- ECHO.
- GOTO HELP
-
- :WRONGDOS
- ECHO.
- ECHO.
- ECHO This Program requires DOS 6.xx to run properly.
- ECHO ══════════════════════════════════════════
- ECHO.
- ECHO If you see this message, either you do NOT have Microsoft
- ECHO DOS v6.xx or the CHOICE command has been deleted. Either
- ECHO copy the Choice command back in your DOS directory, or
- ECHO consult your DOS manual to manually copy the programs to
- ECHO their own directories.
- ECHO.
- ECHO We will make one last attempt to install the programs
- ECHO properly... the program you selected will be placed in
- ECHO a directory named %1 in the C drive.
- ECHO.
- PAUSE
- GOTO WIN95
-
- :WIN95
- IF EXIST C:\WINDOWS\COMMAND\CHOICE.COM GOTO WINTEXT
- IF EXIST C:\WINDOWS\COMMAND\XCOPY.COM GOTO WINTEXT
- GOTO DRIVE1
-
- :WINTEXT
- ECHO.
- ECHO.
- ECHO Though Windows 95 is new, a few of our customers are using it.
- ECHO To keep up with the latest in technology, we are attempting to
- ECHO maintain a certain level of compatibility. Our goal is to
- ECHO allow you to install the program(s) to your hard drive, and to
- ECHO then start the program automatically for you.
- ECHO.
- ECHO It must be stated that we DO NOT GUARANTEE COMPATIBILTY with
- ECHO Windows 95, OS2, or any other operating system or network
- ECHO configuration... NOR CAN WE PROVIDE SUPPORT for such cutting-
- ECHO edge or unique setups. All programs we distribute are tested
- ECHO under DOS v6 (.0,.2,.21,.22) and Windows v3.1 (and 3.11 and
- ECHO Windows for Workgroups). We are only begining to test for
- ECHO Win95 compatibility... please be patient.
- ECHO.
- ECHO.
- PAUSE
- GOTO BEGIN
-
- :BEGIN
- ECHO.
- ECHO.
- ECHO Please press the letter corresponding to your hard drive
- ECHO (C, D, E, F, and G are valid drive choices)
- ECHO.
- ECHO.
- CHOICE /c:cdefg /n C,D,E,F,G ?
- if errorlevel 5 goto DRIVE5
- if errorlevel 4 goto DRIVE4
- if errorlevel 3 goto DRIVE3
- if errorlevel 2 goto DRIVE2
- if errorlevel 1 goto DRIVE1
-
- :DRIVE1
- md c:\%1
- xcopy *.* /V c:\%1
- cd c:\%1
- c:
- CALL %1
- GOTO DELET
-
- :DRIVE2
- md d:\%1
- xcopy *.* /v d:\%1
- cd d:\%1
- d:
- CALL %1
- GOTO DELET
-
- :DRIVE3
- md e:\%1
- xcopy *.* /v e:\%1
- cd e:\%1
- e:
- CALL %1
- GOTO DELET
-
- :DRIVE4
- md f:\%1
- xcopy *.* /v f:\%1
- cd f:\%1
- f:
- CALL %1
- GOTO DELET
-
- :DRIVE5
- md g:\%1
- xcopy *.* /v g:\%1
- cd g:\%1
- g:
- CALL %1
- GOTO DELET
-
- :DELET
- IF EXIST C:\DOS\CHOICE.COM GOTO DELET2
- IF EXIST C:\WINDOWS\COMMAND\CHOICE.COM GOTO DELET2
- GOTO HARDDEL
-
- :DELET2
- ECHO.
- ECHO.
- ECHO Are you sure you want to Delete this Program?
- ECHO.
- CHOICE /c:yn /n /t:Y,60 (Y)es or (N)o ?
- IF ERRORLEVEL 2 GOTO END
- IF ERRORLEVEL 1 GOTO DELET3
-
- :HARDDEL
- ECHO.
- ECHO.
- ECHO Do you want to Delete this Program from your hard disk?
- ECHO.
- ECHO If you DO then press the enter key... if not, hold down
- ECHO the Control (CTRL) key and press the letter C then Y(es).
- ECHO.
- ECHO.
- PAUSE
- GOTO DELET3
-
- :DELET3
- IF EXIST C:\%1\ZZ.BAT GOTO HARDC
- IF EXIST D:\%1\ZZ.BAT GOTO HARDD
- IF EXIST E:\%1\ZZ.BAT GOTO HARDE
- IF EXIST F:\%1\ZZ.BAT GOTO HARDF
- IF EXIST G:\%1\ZZ.BAT GOTO HARDG
- GOTO SORRY
-
- :HARDC
- C:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive C - do you want to continue?
- CHOICE /c:yn /n /t:Y,20 (Y)es or (N)o ?
- IF ERRORLEVEL 2 GOTO END
- IF ERRORLEVEL 1 GOTO NEXT
-
- :HARDD
- IF EXIST MENU.EXE GOTO HELP
- D:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive D - do you want to continue?
- CHOICE /c:yn /n /t:Y,20 (Y)es or (N)o ?
- IF ERRORLEVEL 2 GOTO END
- IF ERRORLEVEL 1 GOTO NEXT
-
- :HARDE
- E:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive E - do you want to continue?
- CHOICE /c:yn /n /t:Y,20 (Y)es or (N)o ?
- IF ERRORLEVEL 2 GOTO END
- IF ERRORLEVEL 1 GOTO NEXT
-
- :HARDF
- F:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive F - do you want to continue?
- CHOICE /c:yn /n /t:Y,20 (Y)es or (N)o ?
- IF ERRORLEVEL 2 GOTO END
- IF ERRORLEVEL 1 GOTO NEXT
-
- :HARDG
- G:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive G - do you want to continue?
- CHOICE /c:yn /n /t:Y,20 (Y)es or (N)o ?
- IF ERRORLEVEL 2 GOTO END
- IF ERRORLEVEL 1 GOTO NEXT
-
- :NEXT
- ECHO.
- ECHO Please wait... this may take a few mintues, depending on
- ECHO the speed of your computer and hard disk drive.
- ECHO.
- ECHO. Y | DEL *.*
- CD\
- RD %1
- GOTO END
-
- :SORRY
- ECHO.
- ECHO Sorry, but this program is not working correctly on your computer.
- ECHO Or has been installed to a directory with a name other than %1
- ECHO See your DOS manual or consult a smart friend to Un-Install this.
- ECHO.
- pause
- goto HELP
-
- :HELP
- ECHO.
- ECHO.
- ECHO This file is intended to assist the end-user in the installation
- ECHO and Un-Installation of DOS based programs found on MMPI CD Roms.
- ECHO Parameters must be given if ran outside of the menu program. Please
- ECHO consult your DOS manual or a smart friend for more details.
- ECHO.
- ECHO %%1 is the name of the EXE, COM, or BAT file used to start the
- ECHO program. It will also be the same name as the directory it
- ECHO creates for the program on the hard drive.
- ECHO.
- ECHO %%2 is to determine whether or not to DELETE or Un-Install.
- ECHO.
- ECHO %%3 is for a Stacker, Double Space or Drive Space drive if the
- ECHO CD is drive D and the program was installed to drive E,F, or G.
- ECHO.
- ECHO.
- ECHO Example: ZZ %1 DELETE F:
- ECHO.
- ECHO ZZ is %%1
- ECHO %1 is the executable
- ECHO DELETE runs Un-Install mode
- ECHO F: is F drive, where you installed the program originally.
- ECHO.
- ECHO.
- GOTO END
-
- :end